table.insert(itemActions,
	function(item, action)
		-- UNIQUE rings
		if not (item.quality == ItemQuality.Unique and
				item.baseItem.code == "rin") then
			return false
		end

		return processItemList(item, action, uniqueRings)
	end
)

-- see: dir .. "readme.txt" for information regarding itemLists

uniqueRings = {
	{"rin", 8, true, -- Rings
		function(item)
			if item.flags.Identified then
				return isGoodUniqueRing(item) -- see below
			end

			return true -- unid
		end
	}
}

function isGoodUniqueRing(item)
	if (
			--item.uniqueItem.Index == 120 or -- all nagels
			--item.uniqueItem.Index == 121 or -- all manalds
			item.uniqueItem.Index == 122 or -- all sojs
			item.uniqueItem.Index == 268 or -- all bks
			--item.uniqueItem.Index == 274 or -- all dwarfs
			--item.uniqueItem.Index == 275 or -- all ravens
			--item.uniqueItem.Index == 300 or -- all natures
			item.uniqueItem.Index == 319 -- all wisps
			--item.uniqueItem.Index == 378 -- all carrions
			) then
		return true
	end
	
	if item.uniqueItem.Index == 120 and
			findStat(item, "Magic Find") >= 30 then -- 30 (perf) mf? nagel (75ar perf)
		return true
	elseif item.uniqueItem.Index == 275 and
			findStat(item, "Dexterity") >= 20 then -- 20 (perf) dex? raven (250ar perf)
		return true
	elseif item.uniqueItem.Index == 378 and
			findStat(item, "Life Drain Min Damage") >= 9 and -- 9 (perf) ll?
			findStat(item, "Armor Class Vs Missile") >= 150 then -- and 150+dvm (160 perf)
		return true
	end
end
